<template>
  <view class="float-button" @click="buttonClick">
    <image class="img" src="../static/img/kefu.png" />
    <view class="word-box">
      <text>咨</text>
      <text>询</text>
      <text>名</text>
      <text>医</text>
    </view>
  </view>
</template>

<script lang="ts">
export default {
  methods: {
    buttonClick() {
      // 点击事件
    },
  },
}
</script>

<style lang="scss" scoped>
.float-button {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 50px;
  height: 150px;
  border-radius: 15%;
  z-index: 999;
  .img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 1;
    flex-grow: 0;
  }
  .word-box {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    flex-shrink: 0;
    width: 50px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 10px;
    font-weight: 900;
  }
}
</style>
